﻿using FigureDraw.Graphic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FigureDraw
{
    class MyPicture
    {
        private List<MyShape> lstShape;

        public List<MyShape> LstShape
        {
            get { return lstShape; }
            set { lstShape = value; }
        }

        public MyPicture()
        {
            lstShape = new List<MyShape>();
        }

        public void Add(MyShape shape)
        {
            lstShape.Add(shape);
        }

        public void Draw(CommonGraphic graphic)
        {
            graphic.DrawPicture(lstShape);
        }
    }
}
